import request from "@/utils/request";

function getOrgTree(data) {
  return request({
    // url: "/opentest/getOrgTree",
    url: "/api/flow/user/org/query",
    method: "post",
    data,
  });
}

function getUserList(data) {
  return request({
    url: "/api/flow/user/query",
    method: "post",
    data,
  });
}

function switchUser(data) {
  return request({
    url: "/api/auth/login",
    method: "post",
    data,
  });
}

export default {
  getOrgTree,
  getUserList,
  switchUser
};